package com.macaque.base.entity;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Set;
/***************************************************************
 * Name:        BaseMap     
 * Create At:   2011-10-22
 * Module:      base model
 * Description: [BaseMap for map to string]
 * Author       zhaowentao
 * ------------------------------------------------------------
 * update history
 * seq  date  update user   reason
 * 1
 * 2
***************************************************************/
public class BaseMap extends HashMap<String,Object> {

	private static final long serialVersionUID = 1L;

	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		Set<String> keys = this.keySet();
		Iterator<String> it = keys.iterator();
		sb.append("BaseMap [");
		while(it.hasNext()){
			String key = it.next();
			Object value = this.get(key);
			sb.append(key).append(":").append(value).append(",");
		}
		sb.append("]");
		return sb.toString();
	}

	
}
